package irpSample;

import org.bdware.irp.irpserver.*;

import java.util.ArrayList;
import java.util.List;

public class IRS {

    public static void main(String[] args){


        IrpListenerInfo listenerInfo = new IrpListenerInfo(10001,"2.0");

        List<IrpListenerInfo> listenerInfos = new ArrayList<>();
        listenerInfos.add(listenerInfo);

        IrpServerInfo serverInfo = new IrpServerInfo("test","testIRS",listenerInfos);

        IrpServer server = IrpServerImpl.createIrpServer(serverInfo);

        server.setIrsServerHandler(new SampleIRPHandler());

        server.start();

    }
}
